package com.jessechanrui.template.skeleton.common.base;

import com.jessechanrui.template.skeleton.common.constant.IStatusCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 响应结果
 *      接口返回结果，带对象
 * @author chenrui
 * @date 2024/1/29
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "带内容的返回信息",description = "带内容的返回信息")
public class ResultResponse<T> extends BaseResponse {

    @ApiModelProperty("返回内容")
    private T data;

    public ResultResponse(IStatusCode iStatusCode) {
        super(iStatusCode);
    }
}
